<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[rules]" value="{$row.rules}" />
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>

    {if $row['id']!=1}

    <div class="form-group">
        <label for="c-new_team_performance" class="control-label col-xs-12 col-sm-2">团队奖比例(%):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new_team_performance" class="form-control" name="row[new_team_performance]" type="number"
                value="{$row.new_team_performance|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-parallel_grade" class="control-label col-xs-12 col-sm-2">平级奖比例(%):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-parallel_grade" class="form-control" name="row[parallel_grade]" type="number"
                value="{$row.parallel_grade|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-talent_scout" class="control-label col-xs-12 col-sm-2">伯乐奖比例(%):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-talent_scout" class="form-control" name="row[talent_scout]" type="number"
                value="{$row.talent_scout|htmlentities}">
        </div>
    </div>
    {/if}


    <hr>
    {if !in_array($row['id'],[1,2])}
    <div class="form-group">
        <h4 class="control-label col-xs-12 col-sm-2">升级条件</h4>
    </div>
    <div class="form-group">
        <label for="c-primary_agent" class="control-label col-xs-12 col-sm-2">{:__('团队业绩')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-team_performance" class="form-control" name="row[team_performance]" type="number"
                value="{$row.team_performance|htmlentities}">
        </div>
    </div>
    {/if}


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>